import { createFetch } from '@/utils/request'
import { IResponseData } from '@/services'
import * as API from '@/services'

/**
 * 获取当前登录用户信息
 * @param opts
 */
export async function queryCurrentUser() {
  return createFetch<any, IResponseData<API.User>>(
    '/api/v1/current-user',
    'GET',
  )(undefined)
}
